<script setup>
import axios from 'axios'
import { getChatContactsMessageAPI } from '@/api/messageAPI.js'
import { axiosInstance } from '@/utils/axios.js'
import { ref } from 'vue'

const input = ref([])
const doAdd = async () => {

}

const reqHeader = async () => {
    const res = await axiosInstance.get('http://127.0.0.1:8888/user/hello')
    //await axios.get('http://127.0.0.1:8888/hello')
    console.log(res)
}
</script>

<template>
    <div>
        <input v-model="input" placeholder="请输入文字" style="width: 200px;"/>
        <input type="file"/>
        <div>
            <button @click="reqHeader()">请求头测试</button>
            <button @click="doAdd()">添加测试</button>
            <button>发送图片测试</button>
        </div>
    </div>
</template>

<style scoped>
*{
    margin: 10px;
}
</style>
